const tools = require("../modules/tools")

// module.exports = (req,res)=>{
  // const tel = req.body.tel
  // const reqCode = req.body.code;

  const code = random(4);

  tools("18325966712", code).then(res=>{
    // 把code存入当前用户集合
    console.log(res);
  })

  function random(n){
    return (Math.random() + "").slice(2, n+2);
  }
// }
